# Make the following environment variable effective
# export PANTHEIOS_ROOT=/home/whq/whq/download/pantheios-1.0.1-beta193/
# export STLSOFT=/home/whq/whq/download/stlsoft-1.9.87/

targetFile=pant

.PHONY: clean run

$(targetFile): $(targetFile).cpp
	g++ pant.cpp  -o pant \
     -Wall -Wno-long-long -Wno-unused-value -Wno-unused-function -Werror -D_REENTRANT -D_DEBUG -UNDEBUG  -Dunix \
     -I$(PANTHEIOS_ROOT)/include -I$(STLSOFT)/include \
     -L$(PANTHEIOS_ROOT)/lib \
     -lpantheios.1.core.gcc41.mt.debug \
     -lpantheios.1.fe.simple.gcc41.mt.debug \
     -lpantheios.1.be.fprintf.gcc41.mt.debug \
     -lpantheios.1.bec.fprintf.gcc41.mt.debug \
     -lb64.1.pan.gcc41.mt.debug \
     -lpantheios.1.util.gcc41.mt.debug \
     -lpthread 

#The following command can't be run, you can also refer the gcc codeRepository for info.
#	g++   -o pant \
     -Wall -Wno-long-long -Wno-unused-value -Wno-unused-function -Werror -D_REENTRANT -D_DEBUG -UNDEBUG  -Dunix \
     -I$(PANTHEIOS_ROOT)/include -I$(STLSOFT)/include \
     -L$(PANTHEIOS_ROOT)/lib \
     -lpantheios.1.core.gcc41.mt.debug \
     -lpantheios.1.fe.simple.gcc41.mt.debug \
     -lpantheios.1.be.fprintf.gcc41.mt.debug \
     -lpantheios.1.bec.fprintf.gcc41.mt.debug \
     -lb64.1.pan.gcc41.mt.debug \
     -lpantheios.1.util.gcc41.mt.debug \
     -lpthread \
	 pant.cpp
run:
	./$(targetFile)

clean:
	rm -f $(targetFile)
